﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000589 RID: 1417
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishCosumeItemMissionCsReq : IMessage<FinishCosumeItemMissionCsReq>, IMessage, IEquatable<FinishCosumeItemMissionCsReq>, IDeepCloneable<FinishCosumeItemMissionCsReq>, IBufferMessage
	{
		// Token: 0x17001230 RID: 4656
		// (get) Token: 0x06003FB2 RID: 16306 RVA: 0x000AEC45 File Offset: 0x000ACE45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishCosumeItemMissionCsReq> Parser
		{
			get
			{
				return FinishCosumeItemMissionCsReq._parser;
			}
		}

		// Token: 0x17001231 RID: 4657
		// (get) Token: 0x06003FB3 RID: 16307 RVA: 0x000AEC4C File Offset: 0x000ACE4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishCosumeItemMissionCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001232 RID: 4658
		// (get) Token: 0x06003FB4 RID: 16308 RVA: 0x000AEC5E File Offset: 0x000ACE5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishCosumeItemMissionCsReq.Descriptor;
			}
		}

		// Token: 0x06003FB5 RID: 16309 RVA: 0x000AEC65 File Offset: 0x000ACE65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishCosumeItemMissionCsReq()
		{
		}

		// Token: 0x06003FB6 RID: 16310 RVA: 0x000AEC70 File Offset: 0x000ACE70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishCosumeItemMissionCsReq(FinishCosumeItemMissionCsReq other) : this()
		{
			this.subMissionId_ = other.subMissionId_;
			this.itemList_ = ((other.itemList_ != null) ? other.itemList_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003FB7 RID: 16311 RVA: 0x000AECBC File Offset: 0x000ACEBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishCosumeItemMissionCsReq Clone()
		{
			return new FinishCosumeItemMissionCsReq(this);
		}

		// Token: 0x17001233 RID: 4659
		// (get) Token: 0x06003FB8 RID: 16312 RVA: 0x000AECC4 File Offset: 0x000ACEC4
		// (set) Token: 0x06003FB9 RID: 16313 RVA: 0x000AECCC File Offset: 0x000ACECC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SubMissionId
		{
			get
			{
				return this.subMissionId_;
			}
			set
			{
				this.subMissionId_ = value;
			}
		}

		// Token: 0x17001234 RID: 4660
		// (get) Token: 0x06003FBA RID: 16314 RVA: 0x000AECD5 File Offset: 0x000ACED5
		// (set) Token: 0x06003FBB RID: 16315 RVA: 0x000AECDD File Offset: 0x000ACEDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList ItemList
		{
			get
			{
				return this.itemList_;
			}
			set
			{
				this.itemList_ = value;
			}
		}

		// Token: 0x06003FBC RID: 16316 RVA: 0x000AECE6 File Offset: 0x000ACEE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishCosumeItemMissionCsReq);
		}

		// Token: 0x06003FBD RID: 16317 RVA: 0x000AECF4 File Offset: 0x000ACEF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishCosumeItemMissionCsReq other)
		{
			return other != null && (other == this || (this.SubMissionId == other.SubMissionId && object.Equals(this.ItemList, other.ItemList) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003FBE RID: 16318 RVA: 0x000AED44 File Offset: 0x000ACF44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SubMissionId != 0U)
			{
				num ^= this.SubMissionId.GetHashCode();
			}
			if (this.itemList_ != null)
			{
				num ^= this.ItemList.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003FBF RID: 16319 RVA: 0x000AED99 File Offset: 0x000ACF99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003FC0 RID: 16320 RVA: 0x000AEDA1 File Offset: 0x000ACFA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003FC1 RID: 16321 RVA: 0x000AEDAC File Offset: 0x000ACFAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SubMissionId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.SubMissionId);
			}
			if (this.itemList_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.ItemList);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003FC2 RID: 16322 RVA: 0x000AEE08 File Offset: 0x000AD008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SubMissionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SubMissionId);
			}
			if (this.itemList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ItemList);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003FC3 RID: 16323 RVA: 0x000AEE60 File Offset: 0x000AD060
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishCosumeItemMissionCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SubMissionId != 0U)
			{
				this.SubMissionId = other.SubMissionId;
			}
			if (other.itemList_ != null)
			{
				if (this.itemList_ == null)
				{
					this.ItemList = new ItemList();
				}
				this.ItemList.MergeFrom(other.ItemList);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003FC4 RID: 16324 RVA: 0x000AEEC8 File Offset: 0x000AD0C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003FC5 RID: 16325 RVA: 0x000AEED4 File Offset: 0x000AD0D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.itemList_ == null)
						{
							this.ItemList = new ItemList();
						}
						input.ReadMessage(this.ItemList);
					}
				}
				else
				{
					this.SubMissionId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400192B RID: 6443
		private static readonly MessageParser<FinishCosumeItemMissionCsReq> _parser = new MessageParser<FinishCosumeItemMissionCsReq>(() => new FinishCosumeItemMissionCsReq());

		// Token: 0x0400192C RID: 6444
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400192D RID: 6445
		public const int SubMissionIdFieldNumber = 10;

		// Token: 0x0400192E RID: 6446
		private uint subMissionId_;

		// Token: 0x0400192F RID: 6447
		public const int ItemListFieldNumber = 13;

		// Token: 0x04001930 RID: 6448
		private ItemList itemList_;
	}
}
